home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / gs261src.zip / tccommon.mak < prev    next >
Text File  |  1993-05-20  |  3KB  |  139 lines

  1. #    Copyright (C) 1991, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2. #
  3. # This file is part of Ghostscript.
  4. #
  5. # Ghostscript is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. # to anyone for the consequences of using it or for whether it serves any
  8. # particular purpose or works at all, unless he says so in writing.  Refer
  9. # to the Ghostscript General Public License for full details.
  10. #
  11. # Everyone is granted permission to copy, modify and redistribute
  12. # Ghostscript, but only under the conditions described in the Ghostscript
  13. # General Public License.  A copy of this license is supposed to have been
  14. # given to you along with Ghostscript so you can know your rights and
  15. # responsibilities.  It should be in a file named COPYING.  Among other
  16. # things, the copyright notice and this notice must be preserved on all
  17. # copies.
  18.  
  19. # tccommon.mak
  20. # Section of MS-DOS makefile for Ghostscript common to
  21. # Turbo C and Turbo/Borland C++, MS-DOS and MS Windows.
  22.  
  23. # This file is used by tc.mak, bc.mak, and bcwin.mak.
  24. # Those files supply the following parameters:
  25. #   Configuration, public:
  26. #    GS_LIB_DEFAULT, GS_INIT, FEATURE_DEVS, DEVICE_DEVS*
  27. #   Configuration, internal, generic:
  28. #    PLATFORM, MAKEFILE, AK, CC*, DEBUG, NOPRIVATE
  29. #   Configuration, internal, specific to DOS/Windows:
  30. #    TDEBUG, USE_ASM, ASM,
  31. #    COMPDIR, (BGIDIR, BGIDIRSTR), INCDIR, LIBDIR,
  32. #    CPU_TYPE, FPU_TYPE,
  33. #    F286, GENOPT
  34.  
  35. # Make sure we get the right default target for make.
  36.  
  37. dosdefault: default
  38.  
  39. # Define a rule for invoking just the preprocessor.
  40.  
  41. .c.i:
  42.     $(COMPDIR)\cpp -I$(INCDIR) -a $(CCFLAGS) -P- $<
  43.  
  44. # Define the extensions for the object and executable files.
  45.  
  46. OBJ=obj
  47. XE=.exe
  48.  
  49. # Define the current directory prefix, shell quote string, and shell name.
  50.  
  51. EXP=
  52. QQ="
  53. SH=
  54. SHP=
  55.  
  56. # Define the memory model for Turbo C.  Don't change it!
  57.  
  58. MM=l
  59.  
  60. # Define the generic compilation flags.
  61.  
  62. !if $(CPU_TYPE) >= 486
  63. ASMCPU=/DFOR80386 /DFOR80486
  64. PLATOPT=$(F286) -DFOR80386 -DFOR80486
  65. !elif $(CPU_TYPE) >= 386
  66. ASMCPU=/DFOR80386
  67. PLATOPT=$(F286) -DFOR80386
  68. !elif $(CPU_TYPE) >= 286
  69. ASMCPU=
  70. PLATOPT=$(F286)
  71. !elif $(CPU_TYPE) >= 186
  72. ASMCPU=
  73. PLATOPT=-1
  74. !else
  75. ASMCPU=
  76. PLATOPT=
  77. !endif
  78.  
  79. !if $(CPU_TYPE) == 486 || $(FPU_TYPE) >= 287
  80. ASMFPU=/DFORFPU
  81. FPFLAGS=-f287
  82. FPLIB=fp87
  83. !elif $(FPU_TYPE) > 0
  84. ASMFPU=/DFORFPU
  85. FPFLAGS=-f87
  86. FPLIB=fp87
  87. !else
  88. ASMFPU=
  89. FPFLAGS=
  90. FPLIB=emu
  91. !endif
  92.  
  93. !if $(TDEBUG)
  94. ASMDEBUG=/DDEBUG
  95. !else
  96. ASMDEBUG=
  97. !endif
  98.  
  99. !if $(USE_ASM)
  100. INTASM=iutilasm.$(OBJ)
  101. PCFBASM=gdevegaa.$(OBJ)
  102. !else
  103. INTASM=
  104. PCFBASM=
  105. !endif
  106.  
  107. # Define the generic compilation rules.
  108.  
  109. ASMFLAGS=$(ASMCPU) $(ASMFPU) $(ASMDEBUG)
  110.  
  111. .asm.obj:
  112.     $(ASM) $(ASMFLAGS) $<;
  113.  
  114. # -------------------------- Auxiliary programs --------------------------- #
  115.  
  116. CCAUX=$(COMPDIR)\$(COMP) -m$(MM) -I$(INCDIR) -L$(LIBDIR) -O
  117.  
  118. echogs$(XE): echogs.c
  119.     $(CCAUX) echogs.c
  120.  
  121. genarch$(XE): genarch.c
  122.     $(CCAUX) genarch.c
  123.  
  124. genconf$(XE): genconf.c
  125.     $(CCAUX) genconf.c
  126.  
  127. # ---------------------- MS-DOS I/O debugging option ---------------------- #
  128.  
  129. dosio_=zdosio.$(OBJ)
  130. dosio.dev: $(dosio_)
  131.     $(SHP)gssetmod dosio $(dosio_)
  132.     $(SHP)gsaddmod dosio -oper zdosio
  133.  
  134. zdosio.$(OBJ): zdosio.c $(OP) $(store_h)
  135.  
  136. # ----------------------------- Assembly code ----------------------------- #
  137.  
  138. iutilasm.$(OBJ): iutilasm.asm
  139.